'use strict';
const axios  = require('axios');
const BASE_URL = 'http://192.168.31.251:7001';
const request = axios.create({
  baseURL: BASE_URL,
  timeout: 30000,
});
request.interceptors.response.use(response=>{
  return response.data
},error => {
  return Promise.resolve(error)
})
module.exports = request
